<?php
/**
 * @author mr.v
 * @copyright http://okvee.net
 */

class board extends MX_Controller {
	
	function __construct() {
		parent::__construct();
		$this->load->model("board/board_index_model");
	}
	
	function index() {
		$output['board_list'] = $this->board_index_model->board_index();
		$output['board_test'] = "board test";
		$this->load->view("board/index_view", $output);
	}
	
	function widget() {
		return $this->load->view("board/widget_view", "", true);// must use return and true to 3rd parameter to prevent echo from controller.
	}
	
}